package com.example._9_springmvc.xzy.service.impl;

import com.example._9_springmvc.xzy.dao.impl.LoginLogDaoImpl;
import com.example._9_springmvc.xzy.pojo.LoginLog;
import com.example._9_springmvc.xzy.service.LoginLogService;

import java.sql.SQLException;
import java.util.ArrayList;

public class LoginLogServiceImpl implements LoginLogService {
    private LoginLogDaoImpl loginLogDaoImpl;

    public void setLoginLogDao(LoginLogDaoImpl loginLogDaoImpl) {
        this.loginLogDaoImpl = loginLogDaoImpl;
    }

    public void LoginLogSave(LoginLog loginLog) throws SQLException, ClassNotFoundException {
        loginLogDaoImpl.SaveLog(loginLog);
    }

    public ArrayList<LoginLog> LoginLogFindAll() throws SQLException, ClassNotFoundException {
        return loginLogDaoImpl.getAllLoginInfo();
    }
}